﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="clk_shouli.aspx.cs" Inherits="Default3" Title="受理计划单" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style7
        {
            font-size: small;
            text-align: left;
        }
        .新建样式1
        {
            text-align: center;
        }
        .style8
        {
            font-size: small;
        }
        .style21
        {
            font-size: small;
        }
        
        .style15
        {
            font-size: x-large;
            font-weight: bold;
        }
                    
        </style>
    <script language="JavaScript" type="text/javascript" src="Js/datejs/WdatePicker.js"
        defer="defer"></script>

    <script language="JavaScript" type="text/javascript" src="Js/Calendar.js"></script>

</head>
<body background="images/login-bg.jpg">
    <form id="form1" runat="server">
    <div style="text-align: center">
    
    <div class="style7">
    
        <span class="style7">当前位置：</span><asp:HyperLink ID="HyperLink1" runat="server" 
            CssClass="style7" NavigateUrl="~/index.aspx" style="color: #000000" 
            ToolTip="点击返回主页面">主页面</asp:HyperLink>
        <span class="style7">→ 受理计划单</span><br class="style7" />
        <br /></div>
<div>
        <br />
        <br /><b>受理计划单<br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="id,jine" DataSourceID="SqlDataSource1" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            style="font-size: small; text-align: center" 
            onrowdatabound="GridView1_RowDataBound" PageSize="30">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="序号"></asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                    ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="lei" HeaderText="类别" SortExpression="lei" >
                <ItemStyle Width="50px" />
                </asp:BoundField>
                                <asp:BoundField DataField="chejian" HeaderText="所属车间" 
                                    SortExpression="chejian" >
                                <ItemStyle Width="80px" />
                                </asp:BoundField>
                <asp:BoundField DataField="banzu" HeaderText="班组" SortExpression="banzu" >
                                <ItemStyle Width="80px" />
                </asp:BoundField>
                                <asp:BoundField DataField="chehao" HeaderText="车号" SortExpression="chehao" >
                                <ItemStyle Width="60px" />
                                </asp:BoundField>
                <asp:BoundField DataField="nian" HeaderText="年" SortExpression="nian" />
                <asp:BoundField DataField="yue" HeaderText="月" SortExpression="yue" />
                                <asp:BoundField DataField="mingcheng" HeaderText="燃油种类" 
                                    SortExpression="mingcheng" >
                                <ItemStyle Width="80px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="danjia" HeaderText="单价(元)" 
                    SortExpression="danjia" DataFormatString="{0:c}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                <asp:BoundField DataField="banzushuliang" HeaderText="班组计划(升)" 
                    SortExpression="banzushuliang" DataFormatString="{0:N0}" />
                <asp:BoundField DataField="chejianshuliang" HeaderText="车间审批(升)" 
                    SortExpression="chejianshuliang" DataFormatString="{0:N0}" />
                <asp:BoundField DataField="duanshuliang" HeaderText="段审批(升)" 
                    SortExpression="duanshuliang" DataFormatString="{0:N0}" />
                                <asp:BoundField DataField="jine" HeaderText="金额(元)" 
                                    SortExpression="jine" DataFormatString="{0:c}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="领取人" SortExpression="lingquren">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("lingquren") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("lingquren") %>' 
                                            Width="80px"></asp:TextBox>
                                        <span class="style15"><b><span class="style7">
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                            ControlToValidate="TextBox3" CssClass="style25" Display="Dynamic" 
                                            ErrorMessage="请输入领取人"></asp:RequiredFieldValidator>
                                        </span></b></span>
                                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="领取时间" SortExpression="lingqutime">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("lingqutime") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("lingqutime") %>' 
                            onclick="showcalendar(this)" Width="70px"></asp:TextBox>
                        <span class="style15"><b><span class="style7">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="TextBox4" CssClass="style25" Display="Dynamic" 
                            ErrorMessage="请选择领取时间"></asp:RequiredFieldValidator>
                        </span></b></span>
                    </ItemTemplate>
                    <ItemStyle Width="65px" />
                </asp:TemplateField>
                <%--新添加油卡分拨--%>
                <asp:TemplateField HeaderText="油卡分拨">
                    <ItemTemplate>
                        <asp:SqlDataSource ID="dsCardNum" runat="server" ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>"
                        SelectCommand="SELECT cardnum, owner + cardnum AS card FROM youkaguanli_card WHERE (jgname = @chejian or bzname=@banzu) AND (enabled = 1) ORDER BY ordernum">
                            <SelectParameters>
                                <asp:QueryStringParameter DefaultValue="" Name="chejian" QueryStringField="chejian" />
                                <asp:QueryStringParameter DefaultValue="" Name="banzu" QueryStringField="bzname" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:DropDownList ID="ddlCardNum" runat="server"
                            Width="175px" AppendDataBoundItems="True" DataSourceID="dsCardNum" DataTextField="card" DataValueField="cardnum">
                            <asp:ListItem Value="">==请选择==</asp:ListItem>
                        </asp:DropDownList><br />
                        <asp:RequiredFieldValidator ID="vCardNum" runat="server" 
                            ControlToValidate="ddlCardNum" CssClass="style25" Display="Dynamic" 
                            ErrorMessage="请选择分拨的<br/>油卡卡号！"></asp:RequiredFieldValidator>
                    </ItemTemplate>
                </asp:TemplateField>
                                <asp:BoundField DataField="liezhi" HeaderText="列支情况" 
                                    SortExpression="liezhi" >
                                <ItemStyle Width="80px" />
                </asp:BoundField>
                                <asp:BoundField DataField="beizhu" HeaderText="备注" 
                                    SortExpression="beizhu" >
                                </asp:BoundField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            
            SelectCommand="SELECT * FROM [ranyouxiaohao] WHERE (([id] = @id) AND ([duanshuliang] &lt;&gt; @duanshuliang)) ORDER BY [id]">
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
                <asp:Parameter DefaultValue="0" Name="duanshuliang" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <span class="style8">
        <br />
        当前登录用户：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        <br />
        </span>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            onclientclick="return confirm('受理提交后将无法修改，确认继续吗？')" Text="提交受理" />
        <br /></b>
    </div>
    </div>
    </form>
    <p class="style21" style="TEXT-ALIGN: center">
        &nbsp;<br />
        &nbsp;安康供电段信息中心制作 2012</p>
</body>
</html>
